package com.ml.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author virgli
 * @since 2020-08-27
 */
public class ExCurrency extends Model<ExCurrency> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 币种名(中文)
     */
    private String nameZh;

    /**
     * 币种名(英文)
     */
    private String nameEn;

    /**
     * 币种代码
     */
    private String currencyCode;

    /**
     * 币种icon的url
     */
    private String icon;

    /**
     * 白皮书地址
     */
    private String whitePaper;

    /**
     * 发行时间
     */
    private LocalDateTime issueTime;

    /**
     * 发行总量
     */
    private Long issueTotal;

    /**
     * 流通总量
     */
    private Long circulateTotal;

    /**
     * 简介
     */
    private String profile;

    /**
     * 显示数量精度
     */
    private Integer showPrecision;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态 （见数据字典）
     */
    private Integer state;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime editTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getNameZh() {
        return nameZh;
    }

    public void setNameZh(String nameZh) {
        this.nameZh = nameZh;
    }
    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }
    public String getCurrencyCode() {
        return currencyCode;
    }

    public void setCurrencyCode(String currencyCode) {
        this.currencyCode = currencyCode;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public String getWhitePaper() {
        return whitePaper;
    }

    public void setWhitePaper(String whitePaper) {
        this.whitePaper = whitePaper;
    }
    public LocalDateTime getIssueTime() {
        return issueTime;
    }

    public void setIssueTime(LocalDateTime issueTime) {
        this.issueTime = issueTime;
    }
    public Long getIssueTotal() {
        return issueTotal;
    }

    public void setIssueTotal(Long issueTotal) {
        this.issueTotal = issueTotal;
    }
    public Long getCirculateTotal() {
        return circulateTotal;
    }

    public void setCirculateTotal(Long circulateTotal) {
        this.circulateTotal = circulateTotal;
    }
    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }
    public Integer getShowPrecision() {
        return showPrecision;
    }

    public void setShowPrecision(Integer showPrecision) {
        this.showPrecision = showPrecision;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getEditTime() {
        return editTime;
    }

    public void setEditTime(LocalDateTime editTime) {
        this.editTime = editTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExCurrency{" +
        "id=" + id +
        ", nameZh=" + nameZh +
        ", nameEn=" + nameEn +
        ", currencyCode=" + currencyCode +
        ", icon=" + icon +
        ", whitePaper=" + whitePaper +
        ", issueTime=" + issueTime +
        ", issueTotal=" + issueTotal +
        ", circulateTotal=" + circulateTotal +
        ", profile=" + profile +
        ", showPrecision=" + showPrecision +
        ", sort=" + sort +
        ", state=" + state +
        ", createTime=" + createTime +
        ", editTime=" + editTime +
        "}";
    }
}
